
#ifndef _BUFFERSTRING_H_
#define _BUFFERSTRING_H_

#include <string.h>

class BufferString {
public:
    const char *ptr;
    int length;

public:
    BufferString();
    BufferString(const char *str);

    bool isEmpty();
    int toInt();
    BufferString& operator=(BufferString& str);
    BufferString& operator=(const char *str);
    bool operator==(BufferString& str);
    bool operator==(const char *str);
};

#endif //_BUFFERSTRING_H_
